//
//  AppDelegate.h
//  Trackit
//
//  Created by yaodaobin on 2017/3/30.
//  Copyright © 2017年 yaodaobin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <Photos/Photos.h>
#import "NSNotificationConstant.h"
#import "SDImageCache.h"
#import "PresentedNavigationController.h"
#import "NSMutableArray+Safe.h"
#import "User.h"
#import "MLNavigationController.h"
#import "RootViewController.h"
#import "LoginViewController.h"
#import "UserDefaultManagement.h"
#import "TaskListViewController.h"
#import "LocationManager.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (nonatomic,strong) RootViewController *rootViewController;
@property (nonatomic,strong) LoginViewController *loginViewController;
@property (nonatomic,strong) TaskListViewController *taskListViewController;
@property (nonatomic,strong) PresentedNavigationController *loginNavController;//导航栏栈，目前主要是登录及注册选择用户状态流程
@property (nonatomic,strong) MLNavigationController *navController;//导航栏栈，目前主要是正常push
@property (nonatomic,strong) User *user;//全局的用户信息，注意一旦user信息有修改，这个全局的user也要更新
@property (nonatomic,strong) NSString *device;//设备唯一标记，[OpenUDID value]
@property (nonatomic,assign) BOOL isAppGuid;//是在标记是不是设置用户状态
@property (nonatomic,assign) BOOL isForeGround;//是否在前台状态
@property (nonatomic,assign) BOOL isActive;//是否激活状态
@property (nonatomic,assign) BOOL showZangYu;
@property (nonatomic,strong) LocationInfo *locationInfo;
@property (nonatomic,strong) NSMutableDictionary *localDictionary;

+ (AppDelegate *)sharedAppDelegate;
- (void)getUserLocationWithonComplete:(void (^)(NSDictionary *data, NSError *error))block;//获取用户当前定位信息
- (NSString *)getZangYuString:(NSString *)string;
- (void)saveValue:(BOOL)value withID:(NSString *)idString;
- (BOOL)localPathExisted:(NSString *)idString;
@end

